﻿using System;
using System.Collections.Generic;

namespace QUANLYCHAMCONG.BL.Entities
{
    public class CHAMCONGCollection : List<CHAMCONG>
    { }
    public class CHAMCONG
    {
        #region ***** Fields & Properties *****
        private string _MACCM;
        public string MACCM
        {
            get
            {
                return _MACCM;
            }
            set
            {
                _MACCM = value;
            }
        }
        private DateTime _NGAY=DateTime.Now.Date;
        public DateTime NGAY
        {
            get
            {
                return _NGAY;
            }
            set
            {
                _NGAY = value;
            }
        }
        private DateTime _NGAYGIO=DateTime.Now;
        public DateTime NGAYGIO
        {
            get
            {
                return _NGAYGIO;
            }
            set
            {
                _NGAYGIO = value;
            }
        }
        private string _NGUON;
        public string NGUON
        {
            get
            {
                return _NGUON;
            }
            set
            {
                _NGUON = value;
            }
        }
        private string _LOAI;
        public string LOAI
        {
            get
            {
                return _LOAI;
            }
            set
            {
                _LOAI = value;
            }
        }
        private int _IDMAY;
        public int IDMAY
        {
            get
            {
                return _IDMAY;
            }
            set
            {
                _IDMAY = value;
            }
        }
        private string _MANV;
        public string MANV
        {
            get
            {
                return _MANV;
            }
            set
            {
                _MANV = value;
            }
        }
        #endregion

        #region ***** Init Methods *****
        public CHAMCONG()
        {
        }
        public CHAMCONG(string maccm)
        {
            this.MACCM = maccm;
        }
        public CHAMCONG(string maccm, DateTime ngay, DateTime ngaygio, string nguon, string loai, int idmay, string manv)
        {
            this.MACCM = maccm;
            this.NGAY = ngay;
            this.NGAYGIO = ngaygio;
            this.NGUON = nguon;
            this.LOAI = loai;
            this.IDMAY = idmay;
            this.MANV = manv;
        }
        #endregion
    }

}
